package com.gjs.cd.service;

import com.gjs.cd.pojo.entity.CdCodeActivationRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zhongwenguang
 * @date 2022-3-22 10:34
 */
public interface ICommonService  {
    //判断表是否存在
    int isTableExist(@Param("tableName")String tableName);

    //统计数量
    int queryCodeTotal(@Param("tableName")String tableName);

    //创建激活码表
    int createCdCode(@Param("tableName")String tableName,@Param("subjectName") String subjectName);

    //创建激活码记录表
    int createCdCodeRecord(@Param("tableName")String tableName,@Param("subjectName") String subjectName);

    //获取激活码记录表
    List<String> queryRecordTableName();
}
